<?php
namespace Admin\Controller;

use Phalcon\Mvc\Controller as PhalconController;

/**
 * Home controller.
 * @RoutePrefix("/admin", name="admin")
 */
class IndexController extends PhalconController
{
    /**
     * Home action.
     * @return void
     * @Input({"aaa":"@required,length(12),message(asd)","xxx":"@required,regex([\w\s,]+)","bbb":{"b1":"","b2":""}})
     * @Route("/", methods={"GET", "POST", "PUT", "DELETE"}, name="index")
     */
    public function indexAction()
    {
        return ['asdsad' => "ccccc"];
    }

    /**
     * Home action.
     * @return void
     * @View
     * @Cache
     * @Route("/test", methods={"GET"}, name="index")
     */
    public function testAction()
    {
        print_r(12312231231);exit("");
        return array("d" => "x");
    }
}

